package net.vicp.fyhui.tool.smalltool;

import cn.singlewindow.ha.util.collector.common.util.SpringContextUtils;
import net.vicp.fyhui.tool.smalltool.config.PropertiesUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SmalltoolApplication {

    public static void main(String[] args) {
//        SpringApplication.run(SmalltoolApplication.class, args);

        ApplicationContext applicationContext = SpringApplication.run(SmalltoolApplication.class,args);
        SpringContextUtils.setApplicationContext(applicationContext);
        System.err.println(System.getProperty("user.dir"));
//        System.err.println(PropertiesUtil.getValue("config/datahandler.properties","type-1"));
    }

}
